/**
 */
package gatperdut.chato.model.Chato.Item.impl;

import gatperdut.chato.model.Chato.Constant.Fluid;

import gatperdut.chato.model.Chato.Item.Drink;
import gatperdut.chato.model.Chato.Item.ItemPackage;

import org.eclipse.emf.ecore.EClass;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Drink</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link gatperdut.chato.model.Chato.Item.impl.DrinkImpl#getFluidContent <em>Fluid Content</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class DrinkImpl extends FoodImpl implements Drink {
	/**
     * The default value of the '{@link #getFluidContent() <em>Fluid Content</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getFluidContent()
     * @generated
     * @ordered
     */
	protected static final Fluid FLUID_CONTENT_EDEFAULT = Fluid.BEER;

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	protected DrinkImpl() {
        super();
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	@Override
	protected EClass eStaticClass() {
        return ItemPackage.Literals.DRINK;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public Fluid getFluidContent() {
        return (Fluid)eDynamicGet(ItemPackage.DRINK__FLUID_CONTENT, ItemPackage.Literals.DRINK__FLUID_CONTENT, true, true);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setFluidContent(Fluid newFluidContent) {
        eDynamicSet(ItemPackage.DRINK__FLUID_CONTENT, ItemPackage.Literals.DRINK__FLUID_CONTENT, newFluidContent);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case ItemPackage.DRINK__FLUID_CONTENT:
                return getFluidContent();
        }
        return super.eGet(featureID, resolve, coreType);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	@Override
	public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case ItemPackage.DRINK__FLUID_CONTENT:
                setFluidContent((Fluid)newValue);
                return;
        }
        super.eSet(featureID, newValue);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	@Override
	public void eUnset(int featureID) {
        switch (featureID) {
            case ItemPackage.DRINK__FLUID_CONTENT:
                setFluidContent(FLUID_CONTENT_EDEFAULT);
                return;
        }
        super.eUnset(featureID);
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	@Override
	public boolean eIsSet(int featureID) {
        switch (featureID) {
            case ItemPackage.DRINK__FLUID_CONTENT:
                return getFluidContent() != FLUID_CONTENT_EDEFAULT;
        }
        return super.eIsSet(featureID);
    }

} //DrinkImpl
